home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / except.zip / README.TXT < prev    next >
Text File  |  1993-03-04  |  3KB  |  94 lines

  1. Doug Fort
  2. Beg 4 Death Software
  3. Arlington VA
  4. 70233,1501
  5.  
  6. Windows NT - Exception Handling Example
  7. =======================================
  8.  
  9. As a developer, I think that Structured Exception Handling is
  10. one of the most attractive features of NT.  I want to share 
  11. what I've stumbled through in my first effort.  There isn't 
  12. much here, but I haven't seen a good example anywhere else.
  13.   
  14. The approach here is to generate a Message Compiler source 
  15. (.MC) file.  From this, the Message Compiler (MC.EXE) creates 
  16. a binary (string) resource, a Resource Compiler Source (.RC) 
  17. file and a C Language Header (.H) file.  
  18. The string resource is built into a resource-only DLL using the
  19. .RC file.  The .H file is used by programs to generate
  20. exception codes. (See WINERROR.H for the system exceptions) 
  21.  
  22. This package contains the ingredients of a demo-version DLL, 
  23. (B4DMSG.DLL) and for a small program (MAIN.EXE) to force an 
  24. exception when a key is pressed.
  25.  
  26. Sources:
  27. ========
  28.  
  29. 1.  David Soloman's presentation on "Structured Exception Handling"
  30. at the October Developer's Conference in Santa Clara.
  31.  
  32. 2.  the RESDLL (Resource only DLL) sample on the October CD.
  33.  
  34. 3.  the PDC sample.
  35.  
  36. Contents:
  37.  
  38. The DLL
  39. =======
  40.  
  41. B4DMSG   MAK         661 03-02-93  06:09PM 
  42. Builds the dll, this comes from the readme file in the
  43. RESDLL example on the October SDK CD.
  44.     
  45. THE_DLL  C          1309 02-28-93  04:30PM 
  46. Boilerplate DLL wrapper, this comes from the readme file in 
  47. the RESDLL example on the October SDK CD.
  48.  
  49. B4DMSG   DEF          18 02-28-93  04:43PM 
  50. Module Definition file for the DLL, from RESDLL.
  51.  
  52. B4DMSG   MC          503 03-02-93  06:15PM 
  53. Message compiler source file.  The best documentation
  54. for this is MC.HLP.
  55.  
  56. B4DMSG   H          1347 03-03-93  05:49PM 
  57. Header file generated by MC.EXE from B4DMSG.MC.  I threw this in
  58. so you don't have to run the make to see it.  See also WINERROR.H.
  59.  
  60. A Class to hide the DLL
  61. ========================
  62. B4DMSGRS H          1482 03-02-93  06:56PM 
  63. Class definition for B4DMsgResource, a class that hides the
  64. Exception DLL.
  65.  
  66. B4DMSGRS CPP        1511 03-02-93  05:59PM 
  67. Class implementation for B4DMsgResource, a class that hides the
  68. Exception DLL.
  69.  
  70. The demo program
  71. =================
  72.  
  73. MAIN     DEF         267 03-18-92  08:32AM 
  74. Module Definition file for the Demo Program.
  75. Copied from RESDLL
  76.  
  77. MAIN     H           709 02-28-93  05:26PM 
  78. Header file for the Demo Program.
  79. Copied from RESDLL
  80.  
  81. MAIN     MAK         395 03-02-93  06:12PM 
  82. Make file for the Demo Program.
  83. Copied from RESDLL
  84.  
  85. MAIN     CPP        4581 03-02-93  05:57PM 
  86. Source file for the Demo Program.
  87. Copied from RESDLL
  88.  
  89. MAKEFILE             125 03-03-93  05:47PM 
  90. This builds the whole pizza.  Note that the DLL 
  91. must be built before the EXE.
  92.  
  93.  
  94.